#pragma once
#include "BinaryMinHeap.h"
class EventsHandler
{

private:
	double _time;
	BinaryMinHeap* _heapEvents;
	Event* getNextEvent();
	bool _stopSimulation;
	bool setTime(double time);

public:
	EventsHandler(void);
	~EventsHandler(void);
	bool startSimulation();
	double getTime() const;
	void addEvent(Event* e); 
	void setStopSimulation(); 
	bool stopSimulation();
	void initSimulation();
	int getEventsCount() const { return _heapEvents->getArraySize(); } 
	
};

